<?php


namespace App\backend\controllers\orders;


use App\backend\controllers\AdminBaseController;
use App\backend\services\OrdersServices;
use App\Utils\JsonResp;
use Illuminate\Http\Request;

class OrdersController extends AdminBaseController
{
    protected $ordersServices;

    public function __construct(OrdersServices $ordersServices)
    {
        $this->ordersServices = $ordersServices;
    }

    /**
     * 订单列表
     */
    public function getOrdersList(Request $request)
    {
        $data = $request->all();
        $list = $this->ordersServices->getOrdersList($data);
        return JsonResp::success('成功', $list);
    }

}
